﻿using System.Configuration;

namespace Kratos.Framework.Configurations
{
    public class KratosModuleConfigurationElement : ConfigurationElement
    {
        public KratosModuleConfigurationElement() { }

        public KratosModuleConfigurationElement(string name)
        {
            Name = name;
        }

        [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
        public string Name
        {
            get { return this["name"] as string; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("type", IsRequired = true)]
        public string Type
        {
            get { return this["type"] as string; }
            set { this["type"] = value; }
        }

        [ConfigurationProperty("dataProvider")]
        public string DataProvider
        {
            get { return this["dataProvider"] as string; }
            set { this["dataProvider"] = value; }
        }
    }
}
